package com.xiaoq.feature.repository;

import java.util.List;

import com.xiaoq.feature.entity.ShopFoodEntity;
import com.xiaoq.vo.PagingVo;

public interface IShopFoodRepository {
	
	public boolean save(ShopFoodEntity shopFood);
	
	
	public List<ShopFoodEntity> findShopFoodListByCity(String cityCode,PagingVo pvo);
	
	public List<ShopFoodEntity> findShopFoodList(Double longitude,Double latitude,Double localLongitude,Double localLatitude,PagingVo pvo);
	
	public ShopFoodEntity findShopFood(String id);
	
	public List<ShopFoodEntity> findShopFoodList(Double longitude,Double latitude);
	
	public List<ShopFoodEntity> findShoopFoodListByIds(List<String> shopIds);
	
	public void addLoc();

	/**
	 *  根据经纬度查询附近几公里的必吃
	 * @param latitude 纬度
	 * @param longitude 经度
	 * @param nearM  附近几米的数据
	 * @param pagingVo 分页信息
	 * @return
	 */
	List<ShopFoodEntity> getShopFoodByPoint(double latitude, double longitude, long nearM, PagingVo pagingVo);
	
	
	public boolean deleteShopFoodById(String shoptFoodId);

}
